<div class='right-cont wrap-feed' ng-controller='FeedbackIndex'>
	<div class='title'>意见反馈<i class='fa fa-spin fa-spinner'></i></div>
	<div class='content'>
		<ul class='nav nav-tabs nav-tabs-a'>
			<li class='active'>
				<a data-target='#list-all' data-toggle='tab'>全部</a>
			</li>
			<li><a data-target='#list-no' data-toggle='tab'>待处理</a></li>
			<li><a data-target='#list-has' data-toggle='tab'>已处理</a></li>
		</ul>
		<div class='tab-content tab-content-a'>
			<div class='tab-pane fade in active' id='list-all'>
				<table class='table table-list'>
					<tr>
						<td>意见ID<span class='fa fa-sort'></span></td>
						<td>内容简介<span class='fa fa-sort'></span></td>
						<td>联系方式<span class='fa fa-sort'></span></td>
						<td>建议时间<span class='fa fa-sort'></span></td>
						<td>处理时间<span class='fa fa-sort'></span></td>
						<td>奖励积分<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in listAll.list'>
						<td>{{item.id}}</td>
						<td>{{item.simple_content}}</td>
						<td>{{item.mobile}}</td>
						<td>{{item.create_date}}</td>
						<td>{{item.deal_date}}</td>
						<td>{{item.reward_score}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 1'>
								{{item.status_text}}
							</span>
							<span class='label label-warning' ng-if='item.status == 0'>
								{{item.status_text}}
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs btn-w-xs' 
								ng-click='detail(item.id)' ng-if='item.status == 1'>
								详情
							</button>
							<button class='btn btn-warning btn-xs btn-w-xs'
								ng-click='deal(item.id)' ng-if='item.status==0'>
								处理
							</button>
						</td>
					</tr>
				</table>
			</div>
			<div class='tab-pane fade' id='list-no'>
				<table class='table table-list'>
					<tr>
						<td>意见ID<span class='fa fa-sort'></span></td>
						<td>内容简介<span class='fa fa-sort'></span></td>
						<td>联系方式<span class='fa fa-sort'></span></td>
						<td>建议时间<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in listNo.list'>
						<td>{{item.id}}</td>
						<td>{{item.simple_content}}</td>
						<td>{{item.mobile}}</td>
						<td>{{item.create_date}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 1'>
								{{item.status_text}}
							</span>
							<span class='label label-warning' ng-if='item.status == 0'>
								{{item.status_text}}
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs btn-w-xs' 
								ng-click='detail(item.id)' ng-if='item.status == 1'>
								详情
							</button>
							<button class='btn btn-warning btn-xs btn-w-xs'
								ng-click='deal(item.id)' ng-if='item.status==0'>
								处理
							</button>
						</td>
					</tr>
				</table>
			</div>
			<div class='tab-pane fade' id='list-has'>
				<table class='table table-list'>
					<tr>
						<td>意见ID<span class='fa fa-sort'></span></td>
						<td>内容简介<span class='fa fa-sort'></span></td>
						<td>联系方式<span class='fa fa-sort'></span></td>
						<td>建议时间<span class='fa fa-sort'></span></td>
						<td>处理时间<span class='fa fa-sort'></span></td>
						<td>状态<span class='fa fa-sort'></span></td>
						<td>操作<span class='fa fa-sort'></span></td>
					</tr>
					<tr ng-repeat='item in listHas.list'>
						<td>{{item.id}}</td>
						<td>{{item.simple_content}}</td>
						<td>{{item.mobile}}</td>
						<td>{{item.create_date}}</td>
						<td>{{item.deal_date}}</td>
						<td>
							<span class='label label-primary' ng-if='item.status == 1'>
								{{item.status_text}}
							</span>
							<span class='label label-warning' ng-if='item.status == 0'>
								{{item.status_text}}
							</span>
						</td>
						<td>
							<button class='btn btn-primary btn-xs btn-w-xs' 
								ng-click='detail(item.id)' ng-if='item.status == 1'>
								详情
							</button>
							<button class='btn btn-warning btn-xs btn-w-xs'
								ng-click='deal(item.id)' ng-if='item.status==0'>
								处理
							</button>
						</td>
					</tr>
				</table>
			</div>
		</div>
		<div class='box-page' ng-bind-html='pageHtml'></div>
	</div>

	<!--详情模态窗-->
	<div class='modal fade feed-detail'>
		<div class='modal-dialog'>
			<div class='modal-content'>	
				<div class='modal-header'>
					反馈详情信息
					<a class='close' data-dismiss='modal'>&times;</a>
				</div>
				<div class='modal-body'>
					<table class='table-info'>
						<tr>
							<td>用户&nbsp;&nbsp;ID:</td>
							<td>{{nFeed.user_id || '未知'}}</td>
							<td>微信昵称:</td>
							<td>{{nFeed.nickname || '未知'}}</td>
							<td>真实姓名:</td>
							<td>{{nFeed.truename || '未知'}}</td>
						</tr>
						<tr>
							<td>反馈时间:</td>
							<td>{{nFeed.create_date || '未知'}}</td>
							<td>联系方式:</td>
							<td>{{nFeed.mobile || '未知'}}</td>
							<td>奖励积分:</td>
							<td>{{nFeed.reward_score || '未知'}}</td>
						</tr>
						<tr>
							<td>处理时间:</td>
							<td>{{nFeed.deal_date || '未知'}}</td>
							<td>处理人:</td>
							<td>{{nFeed.dealer_name || '未知'}}</td>
							<td>处理状态:</td>
							<td>{{nFeed.status_text || '未知'}}</td>
						</tr>
						<tr>
							<td valign='top'>反馈内容:</td>
							<td colspan='5'>{{nFeed.content}}</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--处理模态窗-->
	<div class='modal fade feed-deal'>
		<div class='modal-dialog'>
			<div class='modal-content'>	
				<div class='modal-header'>
					反馈信息处理
					<a class='close' data-dismiss='modal'>&times;</a>
				</div>
				<div class='modal-body'>
					<table class='table-info'>
						<tr>
							<td>用户ID:</td>
							<td>{{nFeed.user_id || '未知'}}</td>
							<td>微信昵称:</td>
							<td>{{nFeed.nickname || '未知'}}</td>
							<td>真实姓名:</td>
							<td>{{nFeed.truename || '未知'}}</td>
						</tr>
						<tr>
							<td>反馈时间:</td>
							<td>{{nFeed.create_date || '未知'}}</td>
							<td>联系方式:</td>
							<td console='3'>{{nFeed.mobile || '未知'}}</td>
						</tr>
						<tr>
							<td valign='top'>反馈内容:</td>
							<td colspan='5'>{{nFeed.content}}</td>
						</tr>
						<tr>
							<td>奖励积分:</td>
							<td colspan='5'>
								<div class='box-radio'>
									<input type='radio' ng-model='nFeed.reward_score' value='0'>0
								</div>
								<div class='box-radio'>
									<input type='radio' ng-model='nFeed.reward_score' value='50'>50
								</div>
								<div class='box-radio'>
									<input type='radio' ng-model='nFeed.reward_score' value='200'>200
								</div>
								<div class='box-radio'>
									<input type='radio' ng-model='nFeed.reward_score' value='500'>500
								</div>
							</td>
					</table>
				</div>
				<div class='modal-footer'>
                    <button class='btn btn-primary btn-sm btn-w-sm' ng-click='submit_deal()'>确认</button>
                    <button class='btn btn-default btn-sm btn-w-sm' data-dismiss='modal'>取消</button>
                </div>
			</div>
		</div>
	</div>
</div>